<?php
/**
 * app-drama launcher
 * @package app-drama
 */
error_reporting(E_ALL);

if(!defined('MEMCACHE_COMPRESSED')){
	define('MEMCACHE_COMPRESSED',2);
}

define('APP_NAME','app-drama');

define('CODE_BASE_PATH',dirname(__FILE__));
define('COMMON_PATH',realpath(CODE_BASE_PATH.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'system'.DIRECTORY_SEPARATOR.'common'));
define('SYS_PATH',realpath(CODE_BASE_PATH.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'system'.DIRECTORY_SEPARATOR.'kernel'));
define('COMMON_CFG_PATH',realpath(CODE_BASE_PATH.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'system'.DIRECTORY_SEPARATOR.'common'.DIRECTORY_SEPARATOR.'config'));
define('SYS_CFG_PATH',realpath(CODE_BASE_PATH.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'system'.DIRECTORY_SEPARATOR.'kernel'.DIRECTORY_SEPARATOR.'config'));

define('APP_PATH',CODE_BASE_PATH);
define('APP_CFG_PATH',CODE_BASE_PATH.DIRECTORY_SEPARATOR.'config');
define('CST_CFG_PATH',realpath(CODE_BASE_PATH.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'drama'));

$G_LOAD_PATH=array(
		APP_PATH,
		COMMON_PATH,
		SYS_PATH
);
$G_CONFIG_PATH=array(
		SYS_CFG_PATH,
		COMMON_CFG_PATH,
		APP_CFG_PATH,
		CST_CFG_PATH
);

include_once (SYS_PATH.'/bin.php');

main_cmd();